<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<title>角色权限修改</title>

		<style>
			html,
			body {
				margin: 0;
				padding: 0;
			}
			
			.head {
				overflow: hidden;
				position: fixed;
				top: 0;
				width: 100%;
				padding: 20px 0;
				background: #fff;
			}
			
			.name {
				float: left;
				padding-left: 10px;
				border-left: 2px solid #3f7fcf;
				margin: 10px;
			}
			
			.btn_box {
				float: right;
				text-align: right;
			}
			
			.btn {
				line-height: 30px;
				height: 30px;
				padding: 0 10px;
				border-radius: 4px;
				background: #eea236;
				border: none;
				color: #fff;
				margin-right: 10px;
			}
			
			.detail {
				line-height: 30px;
			}
			
			.label {
				float: left;
				display: block;
				width: 150px;
				text-align: right;
				color: #3f7fcf;
			}
			
			.value_list {
				margin-left: 160px;
				overflow: hidden;
			}
			
			.value {
				float: left;
				width: 30%;
			}
			
			.row {
				border-top: 1px solid #ddd;
				margin-top: 20px;
				padding-top: 20px;
			}
			/* #form_jurisdiction_btn{
	position: fixed;
    width: 100%;
    height: 40px;
}

#form_jurisdiction{
	position:relative;
	top:30px;
} */
		</style>
	</head>

	<body>
		<div id="div">
			<form action="updateroots.do" method="post" id="form_jurisdiction_btn">
				<div class="head">
					<!-- <div class="name">title</div> -->
					<div class="btn_box">
						<c:if test="${isEdit }">
							<input class="btn" type="button" onclick="allcheck();" id="allcheack" value="全选" />
							<button class="btn" type="button" onclick="role_update();" style="background-color: rgb(66,139,202)">确定</button>
						</c:if>
						<input type="hidden" value="${roleid }" name="roleid" id="roleid" />
						<input type="hidden" value="" name="idlist" id="idlist" />
						<input class="btn" type="button" value="取消" onclick="window.location.href='<%=basePath%>role/selectByWhere.do'" />
					</div>
				</div>
			</form>
			<form action="updateroots.do" method="post" id="form_jurisdiction" style="padding-top: 60px;">
				<div class="detail">
					<div class="row">
						<label for="" class="label">采购申请</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="101" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">${jurisdiction.jurisdictionid}
								<c:if test="${jurisdiction.jurisdictionid==101 }">checked</c:if>
								</c:forEach> />
								查看采购申请 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="102" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==102 }">checked</c:if>
								</c:forEach> />
								新增采购申请 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="103" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==103 }">checked</c:if>
								</c:forEach> />
								查看全部采购申请</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="104" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==104 }">checked</c:if>
								</c:forEach> />
								编辑全部采购申请</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">采购订单</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="111" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==111 }">checked</c:if>
								</c:forEach> />
								查看待采购物资 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="112" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==112 }">checked</c:if>
								</c:forEach> />
								查看采购订单</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="113" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==113 }">checked</c:if>
								</c:forEach> />
								新增采购订单</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="114" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==114 }">checked</c:if>
								</c:forEach> />
								查看全部采购订单</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="115" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==115 }">checked</c:if>
								</c:forEach> />
								编辑全部采购订单</label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">退货申请</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="121" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==121 }">checked</c:if>
								</c:forEach> />
								查看退货申请 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="122" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==122 }">checked</c:if>
								</c:forEach> />
								新增退货申请 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="123" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==123 }">checked</c:if>
								</c:forEach> />
								查看全部退货申请</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="124" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==124 }">checked</c:if>
								</c:forEach> />
								编辑全部退货申请</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">采购入库</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="131" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==131 }">checked</c:if>
								</c:forEach> />
								查看采购入库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="132" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==132 }">checked</c:if>
								</c:forEach> />
								新增采购入库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="133" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==133 }">checked</c:if>
								</c:forEach> />
								查看全部采购入库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="134" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==134 }">checked</c:if>
								</c:forEach> />
								编辑全部采购入库</label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">普通入库</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="141" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==141 }">checked</c:if>
								</c:forEach> />
								查看普通入库 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="142" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==142 }">checked</c:if>
								</c:forEach> />
								新增普通入库 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="143" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==143 }">checked</c:if>
								</c:forEach> />
								查看全部普通入库 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="144" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==144 }">checked</c:if>
								</c:forEach> />
								编辑全部普通入库 </label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">领料归还</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="331" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==331 }">checked</c:if>
								</c:forEach> />
								查看领料归还 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="332" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==332 }">checked</c:if>
								</c:forEach> />
								新增领料归还 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="333" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==333 }">checked</c:if>
								</c:forEach> />
								查看全部领料归还 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="334" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==334 }">checked</c:if>
								</c:forEach> />
								编辑全部领料归还 </label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">退货出库</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="151" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==151 }">checked</c:if>
								</c:forEach> />
								查看待退货物资 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="152" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==152 }">checked</c:if>
								</c:forEach> />
								查看退货单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="153" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==153 }">checked</c:if>
								</c:forEach> />
								新增退货单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="154" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==154 }">checked</c:if>
								</c:forEach> />
								查看全部退货单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="155" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==155 }">checked</c:if>
								</c:forEach> />
								编辑全部退货单 </label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">领用出库</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="161" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==161 }">checked</c:if>
								</c:forEach> />
								查看领用单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="162" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==162 }">checked</c:if>
								</c:forEach> />
								新增领用单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="163" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==163 }">checked</c:if>
								</c:forEach> />
								查看全部领用单 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="164" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==164 }">checked</c:if>
								</c:forEach> />
								编辑全部领用单 </label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">库存查询</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="171" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==171 }">checked</c:if>
								</c:forEach> />
								查看库存 </label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">库存调配</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="341" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==341 }">checked</c:if>
								</c:forEach> />
								查看库存调配 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="342" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==342 }">checked</c:if>
								</c:forEach> />
								查看全部库存调配 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="343" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==343 }">checked</c:if>
								</c:forEach> />
								新增库存调配 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="344" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==344 }">checked</c:if>
								</c:forEach> />
								编辑全部库存调配 </label>
							</div>
						</div>
					</div>

					<div class="row">
						<label for="" class="label">库存报损</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="181" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==181 }">checked</c:if>
								</c:forEach> />
								查看库存报损 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="182" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==182 }">checked</c:if>
								</c:forEach> />
								新增库存报损 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="183" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==183 }">checked</c:if>
								</c:forEach> />
								查看全部库存报损 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="184" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==184 }">checked</c:if>
								</c:forEach> />
								编辑全部库存报损 </label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">库存盘点</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="191" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==191 }">checked</c:if>
								</c:forEach> />
								查看库存盘点</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="192" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==192 }">checked</c:if>
								</c:forEach> />
								新增库存盘点</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="193" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==193 }">checked</c:if>
								</c:forEach> />
								查看全部库存盘点</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="194" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==194 }">checked</c:if>
								</c:forEach> />
								编辑全部库存盘点</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">预警管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="201" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==201 }">checked</c:if>
								</c:forEach> />
								有效期预警 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="202" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==202 }">checked</c:if>
								</c:forEach> />
								库存预警</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">统计报表</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="211" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==211 }">checked</c:if>
								</c:forEach> />
								采购统计 </label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="212" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==212 }">checked</c:if>
								</c:forEach> />
								入库统计</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="213" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==213 }">checked</c:if>
								</c:forEach> />
								盘点统计</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="214" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==214 }">checked</c:if>
								</c:forEach> />
								报损统计</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="215" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==215 }">checked</c:if>
								</c:forEach> />
								领用统计</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="216" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==216 }">checked</c:if>
								</c:forEach> />
								退货统计</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">物品管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="221" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==221 }">checked</c:if>
								</c:forEach> />
								查看物品</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="222" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==222 }">checked</c:if>
								</c:forEach> />
								新增物品</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="223" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==223 }">checked</c:if>
								</c:forEach> />
								编辑物品</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="224" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==224 }">checked</c:if>
								</c:forEach> />
								删除物品</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">物品分类</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="231" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==231 }">checked</c:if>
								</c:forEach> />
								查看物品分类</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="232" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==232 }">checked</c:if>
								</c:forEach> />
								新增物品分类</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="233" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==233 }">checked</c:if>
								</c:forEach> />
								编辑物品分类</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="234" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==234 }">checked</c:if>
								</c:forEach> />
								删除物品分类</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">供应商管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="241" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==241 }">checked</c:if>
								</c:forEach> />
								查看供应商</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="242" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==242 }">checked</c:if>
								</c:forEach> />
								新增供应商</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="243" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==243 }">checked</c:if>
								</c:forEach> />
								编辑供应商</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="244" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==244 }">checked</c:if>
								</c:forEach> />
								删除供应商</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="245" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==245 }">checked</c:if>
								</c:forEach> />
								上传供应商附件</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="246" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==246 }">checked</c:if>
								</c:forEach> />
								下载供应商附件</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="247" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==247 }">checked</c:if>
								</c:forEach> />
								删除供应商附件</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">供货协议</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="251" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==251 }">checked</c:if>
								</c:forEach> />
								查看供货协议</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="252" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==252 }">checked</c:if>
								</c:forEach> />
								新增供货协议</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="253" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==253 }">checked</c:if>
								</c:forEach> />
								编辑供货协议</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="254" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==254 }">checked</c:if>
								</c:forEach> />
								删除供货协议</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">仓库管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="261" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==261 }">checked</c:if>
								</c:forEach> />
								查看仓库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="262" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==262 }">checked</c:if>
								</c:forEach> />
								新增仓库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="263" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==263 }">checked</c:if>
								</c:forEach> />
								编辑仓库</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="264" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==264 }">checked</c:if>
								</c:forEach> />
								删除仓库</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">库位管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="271" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==271 }">checked</c:if>
								</c:forEach> />
								查看库位</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="272" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==272 }">checked</c:if>
								</c:forEach> />
								新增库位</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="273" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==273 }">checked</c:if>
								</c:forEach> />
								编辑库位</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="274" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==274 }">checked</c:if>
								</c:forEach> />
								删除库位</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">店仓管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="281" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==281 }">checked</c:if>
								</c:forEach> />
								查看店仓</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="282" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==282 }">checked</c:if>
								</c:forEach> />
								新增店仓</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="283" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==283 }">checked</c:if>
								</c:forEach> />
								编辑店仓</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="284" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==284 }">checked</c:if>
								</c:forEach> />
								删除店仓</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">用户管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="291" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==291 }">checked</c:if>
								</c:forEach> />
								查看用户</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="292" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==292 }">checked</c:if>
								</c:forEach> />
								新增用户</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="293" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==293 }">checked</c:if>
								</c:forEach> />
								编辑用户</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="294" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==294 }">checked</c:if>
								</c:forEach> />
								删除用户</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">角色管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="301" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==301 }">checked</c:if>
								</c:forEach> />
								查看角色</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="302" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==302 }">checked</c:if>
								</c:forEach> />
								新增角色</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="303" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==303 }">checked</c:if>
								</c:forEach> />
								编辑角色</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="304" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==304 }">checked</c:if>
								</c:forEach> />
								删除角色</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="305" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==305 }">checked</c:if>
								</c:forEach> />
								管理角色权限</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">权限管理</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="311" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==311 }">checked</c:if>
								</c:forEach> />
								查看权限</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="312" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==312 }">checked</c:if>
								</c:forEach> />
								开启权限</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="313" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==313 }">checked</c:if>
								</c:forEach> />
								关闭权限</label>
							</div>
						</div>
					</div>
					<div class="row">
						<label for="" class="label">审批流程</label>
						<div class="value_list">
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="321" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==321 }">checked</c:if>
								</c:forEach> />
								查看审批流程</label>
							</div>
							<div class="value">
								<label><input type="checkbox" name="jurisdictionid"
								value="322" onclick="Uncheckall()"
								<c:forEach items="${jurisdiction}" var="jurisdiction">
								<c:if test="${jurisdiction.jurisdictionid==322 }">checked</c:if>
								</c:forEach> />
								修改审批流程</label>
							</div>
						</div>
					</div>
					<div class="row"></div>
				</div>
			</form>
		</div>
		<script type="text/javascript" src="<%=basePath%>js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript">
			function allcheck() {

				var number = new Array();
				var ht = $("#allcheack").val();
				if(ht == "全选") {
					$("#div input[type='checkbox']").each(function() { //获取特定标签下的特定属性值的特定标签组
						//			$(this).attr('checked', 'checked');
						$(this).prop("checked", true);
					});
					var boxs = document.getElementsByName("jurisdictionid");
					var str = "";
					for(var i = 0; i < boxs.length; i++) {
						if(boxs[i].checked) {
							str += boxs[i].value + ",";
						}
					}
					document.getElementById("idlist").value = str;
					$("#allcheack").val("取消");
				} else {
					$("#div input[type='checkbox']").each(function() {
						//			$(this).removeAttr('checked');
						$(this).prop("checked", false);
					});
					document.getElementById("idlist").value = "";
					$("#allcheack").val("全选");
				}

			}

			function Uncheckall() {
				var boxs = document.getElementsByName("jurisdictionid");
				var str = "";
				for(var i = 0; i < boxs.length; i++) {
					if(boxs[i].checked) {
						str += boxs[i].value + ",";
					}
				}
				document.getElementById("idlist").value = str;
			}

			function role_update() {
				Uncheckall();
				var roleid = document.getElementById("roleid").value;
				var idlist = document.getElementById("idlist").value;
				window.location.href = "<%=basePath%>Jurisdiction/updateroots.do?roleid=" + roleid + "&idlist=" + idlist;
			}
		</script>
	</body>

</html>